package com.winter.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.winter.model.CustomerMessage;
@Repository
public interface CustomerMessageMapper {
    int deleteByPrimaryKey(Short id);

    int insert(CustomerMessage record);

    int insertSelective(CustomerMessage record);

    CustomerMessage selectByPrimaryKey(Short id);

    int updateByPrimaryKeySelective(CustomerMessage record);

    int updateByPrimaryKeyWithBLOBs(CustomerMessage record);

    int updateByPrimaryKey(CustomerMessage record);
    
    /**
     * 获取留言管理列表
     * @param createUser
     * @return
     */
    List<CustomerMessage> queryPage(@Param("createUser") String createUser,@Param("id") Long id);
}